﻿@using www.Controllers
@{
    ViewBag.Title = "PostStory";
    Layout = "~/Views/Shared/_Layout.cshtml";
}


<script type="text/javascript" src="@Url.Content("~/fckEditor/fckeditor.js")"></script>

<script type="text/javascript">
    window.onload = function () {
        var sBasePath = '@Url.Content("~/fckeditor/")';
        var oFCKeditor = new FCKeditor('txtdetail');
        oFCKeditor.BasePath = sBasePath;
        oFCKeditor.Height = 350;
        oFCKeditor.ReplaceTextarea();
    }
</script>
<fieldset>
    <legend style="color: #333; font-weight: bold;">@Utility.GetResource.GetResouceValue(Session["Culture"], "lblShareStory")</legend>
    @using (Html.BeginForm("PostStory", "Home", FormMethod.Post, new { id = "frmStory", enctype = "multipart/form-data" }))
    {
        <div class="content">
            <div class="content">
                <span style="color: #ff0000; font-weight: bold; font-style: italic;">@ViewBag.Message</span>
                <br />
                <br />
            </div>
            <div class="row">
                <div class="col-left">@Utility.GetResource.GetResouceValue(Session["Culture"], "lblTypeStory")  <span class="red">*</span></div>
                <div class="col-right">@Html.DropDownList("StoryType", null, new { @class = "combobox" })
                  
                </div>
            </div>
            <div class="row">
                <div class="col-left">@Utility.GetResource.GetResouceValue(Session["Culture"], "lblTitile")  <span class="red">*</span></div>
                <div class="col-right">@Html.TextBox("txtName", null, new { @class = "textbox" })
                   
                </div>
            </div>
            <div class="row">
                <div class="col-left">@Utility.GetResource.GetResouceValue(Session["Culture"], "lblImage")  <span class="red">*</span></div>
                <div class="col-right">
                    <input type="file" name="fufile" id="fufile" style="width: 100%;" />
                </div>
            </div>
            <div class="textarial">
                <div class="col-left">
                    @Utility.GetResource.GetResouceValue(Session["Culture"], "lblSumary") <span class="red">*</span>
                </div>
                <div class="col-right">
                    @Html.TextArea("txtSummary","",new{@class="textarea2"})
                </div>
            </div>
            <div class="content">
                <div class="col-left">
                     @Utility.GetResource.GetResouceValue(Session["Culture"], "lblDetail") <span class="red">*</span>
                </div>
                <div class="col-right">
                    @Html.TextArea("txtdetail", new { @class = "textarea2" })
                </div>
            </div>
            <div class="row">
                <div class="col-left"></div>
                <div class="col-right">
                </div>
            </div>
            <div class="row">
                <div class="col-left"></div>
                <div class="col-right">
                    <button>@Utility.GetResource.GetResouceValue(Session["Culture"], "lblPostStory")</button>
                </div>
            </div>
        </div>
    }
</fieldset>
